<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<title>Rendertext example</title>
<style type="text/css">
form { padding-top: 30px; }
table { padding-top: 10px; }
table td { padding-left: 10px; }
</style>

<!-- PNG support for IE < 7 -->
<script language="javascript" type="text/javascript" src="/sitemedia/jquery-1.1.4.pack.js"></script>
<script language="javascript" type="text/javascript" src="/sitemedia/jquery.iepnghack.1.6.js"></script>
<script type="text/javascript">
$(function() {
  $.pngfix('/sitemedia/pixel.gif');
  $('img[@src$=.png]').pngfix();
});
</script>
</head>

<body>


{% load rendertext %}

<p><code>{% templatetag openvariable %}"Simple example"|rendertext:"gentium,30"{% templatetag closevariable %}</code></p>

<p>{{"Simple example"|rendertext:"gentium,25"}}</p>


<form method="GET" action="">
  Type in text:
  <input type="text" name="exampletext" value="{{ exampletext }}">
  <input type="submit" value="Regenerate">
</form>

<table>
  <tr>
    <td>{{ exampletext|rendertext:"gentium,12"}}</td>
    <td><code>{% templatetag openvariable %} exampletext|rendertext:"gentium,12"{% templatetag closevariable %}</code></td>
  </tr>
  <tr>
    <td>{{ exampletext|rendertext:"gentium,25"}}</td>
    <td><code>{% templatetag openvariable %} exampletext|rendertext:"gentium,25"{% templatetag closevariable %}</code></td>
  </tr>
  <tr>
    <td>{{ exampletext|rendertext:"gentium,30,#98602d"}}</td>
    <td><code>{% templatetag openvariable %} exampletext|rendertext:"gentium,30,#98602d"{% templatetag closevariable %}</code></td>
  </tr>
  <tr>
    <td>{{ exampletext|rendertext:"gentium,30,#514807,45"}}</td>
    <td><code>{% templatetag openvariable %} exampletext|rendertext:"gentium,30,#514807,45"{% templatetag closevariable %}</code></td>
  </tr>
  <tr>
    <td>{{ exampletext|rendertext:"gentium,30,#0a4800,90"}}</td>
    <td><code>{% templatetag openvariable %} exampletext|rendertext:"gentium,30,#0a4800,90"{% templatetag closevariable %}</code></td>
  </tr>
  <tr>
    <td>{{ exampletext|rendertext:"gentium,30,#2a2c04,180"}}</td>
    <td><code>{% templatetag openvariable %} exampletext|rendertext:"gentium,30,#2a2c04,180"{% templatetag closevariable %}</code></td>
  </tr>
</table>




</body>
</html>
